Repository navigation
Conversation
…rol plane follows Signed-off-by: gopal tathe <44522021+techgopal@users.noreply.github.com>
…ash, route_update job, /sites/{id}/basic-auth)
Signed-off-by: gopal tathe <44522021+techgopal@users.noreply.github.com>
…, 0398, 0410) Signed-off-by: gopal tathe <44522021+techgopal@users.noreply.github.com>
… site-basic-auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds HTTP basic auth in front of one site, enforced by Caddy.
SetRoutecarries an optional bcrypt user/hash; the route gets Caddy's http_basic handler.site_basic_auth(migration 0005, also adds theroute_updatejob kind);GET/PUT/DELETE /api/v1/sites/{id}/basic-auth; the password is bcrypt-hashed (cost 12) on the blocking pool and never stored, returned or logged; a change enqueues aroute_updatejob that leaves the site status alone..sqlx/andopenapi.jsonregenerated; CHANGELOG 0.1.7 entry.Tests: new API test (validation, role guard, hash sent to the agent and verifies, removal), 3 job tests,
scripts/test.shgreen, fmt and clippy clean.Not done: UI form and
ui/types (no node on the build box),scripts/e2e.sh.